package com.blood.core.config.file;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author yelong
 * @version 1.0
 * @date 2020/8/12 13:35
 * @description
 */
@ConditionalOnProperty(value = "file.uploadFolder")
@ConfigurationProperties(prefix = "file")
@Configuration
@Data
public class FileProperties {

    /**
     * FTP 服务器地址
     */
    private String host;
    /**
     * FTP 服务器端口
     */
    private Integer port;
    /**
     * FTP 服务器账号
     */
    private String username;
    /**
     * FTP 服务密码
     */
    private String password;
    /**
     * 上传地址
     */
    private String uploadFolder;
    /**
     * 静态资源访问路径
     */
    private String staticAccessPath;

}
